package com.etc.entity;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository //bean dao层bean
public class AppleBeanDao {
	
	@Resource //通过名字注入 ,没有名字再按照类型
	private AppleBean ab;
	
	@Autowired //默认 按照类型,
	@Qualifier(value="ab1")
	private AppleBean ab1;

}
